package com.hxzy.controller.admin.login.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Desc 登录请求参数
 * @Author: admin
 * @Date: 2023/06/29/14:36
 */
@Getter
@Setter
@ToString
@ApiModel(value = "登录模型")
public class AdminLoginReq {

    @ApiModelProperty(value = "账户")
    @NotBlank(message = "账户名不能为空")
    private String loginName;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码名不能为空")
    private String loginPwd;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty(value = "验证码令牌")
    @NotBlank(message = "验证码令牌不能为空")
    private String uuid;

    @NotNull(message = "用户类型不能为空")
    private Integer type;

}
